package com.cooper.java.scraper;

/**
 * Created with IntelliJ IDEA.
 * User: cooperlee
 * Date: 11/15/12
 * Time: 9:52 AM
 */
public class DownloadException extends Exception{

    /**
     *
     */
    private static final long serialVersionUID = 6834028343741641789L;

    public static final int ERROR_IO = 101;
    public static final int ERROR_CLIENT = 102;
    public static final int ERROR_CONNECT_TIMEOUT = 103;
    public static final int ERROR_SOCKET_TIMEOUT = 104;
    public static final int ERROR_OTHER = 105;

    public DownloadException(String url){
        super();
    }

    private Exception e;

    public DownloadException(Exception e){
        super(e.getMessage());
        this.e = e;
    }

}
